{% extends "base.html" %}
{% block title %}德育分记录{% endblock %}
{% block content%}

<div class="moral_log">
<p>{{student.user.first_name}}的德育分（{{typename}}）变化记录</p>
<p>账户余额：{{student.moral_pri_mark}}(班级),{{student.moral_pub_mark}}(学校)</p>
<table id="thetable">
  <tr>
    <th scope="col">日期</th>
    <th scope="col">分数</th>
    <th scope="col">原因</th>
  </tr>
  {% for ml in mls %}
  <tr>
    <td>{{ml.date}}</td>
    <td>{{ml.mark}}</td>
    <td>{{ml.reason}}</td>
  </tr>
{% endfor %}
</table>
</div>
{% endblock %}